package tech.aistar.pojo;

import java.io.Serializable;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/5/7 3:22 下午
 */
public class Book implements Serializable {
    private Long id;

    private String bookName;

    private Integer bookStock;

    private Double price;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Integer getBookStock() {
        return bookStock;
    }

    public void setBookStock(Integer bookStock) {
        this.bookStock = bookStock;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Book{");
        sb.append("id=").append(id);
        sb.append(", bookName='").append(bookName).append('\'');
        sb.append(", bookStock=").append(bookStock);
        sb.append(", price=").append(price);
        sb.append('}');
        return sb.toString();
    }
}
